class CTeacher extends CPerson{

    private String profession;
    private String jobTitle; 

    public CTeacher(String profession, String jobTitle){
        this.profession = profession;
        this.jobTitle = jobTitle;
    }

    public void display(){
        String str = "我是"+this.name+", 今年"+this.age+"岁了！";
        str += "我的专业是"+this.profession+", 我的职称为："+this.jobTitle;
        System.out.println(str);
    }
}